﻿using Idlesoft.Utils;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.IO;

namespace UtilsTests
{
    
    
    /// <summary>
    ///This is a test class for AsyncProcessTest and is intended
    ///to contain all AsyncProcessTest Unit Tests
    ///</summary>
	[TestClass()]
	public class AsyncProcessTest
	{


		private TestContext testContextInstance;

		/// <summary>
		///Gets or sets the test context which provides
		///information about and functionality for the current test run.
		///</summary>
		public TestContext TestContext
		{
			get
			{
				return testContextInstance;
			}
			set
			{
				testContextInstance = value;
			}
		}

		#region Additional test attributes
		// 
		//You can use the following additional attributes as you write your tests:
		//
		//Use ClassInitialize to run code before running the first test in the class
		//[ClassInitialize()]
		//public static void MyClassInitialize(TestContext testContext)
		//{
		//}
		//
		//Use ClassCleanup to run code after all tests in a class have run
		//[ClassCleanup()]
		//public static void MyClassCleanup()
		//{
		//}
		//
		//Use TestInitialize to run code before running each test
		//[TestInitialize()]
		//public void MyTestInitialize()
		//{
		//}
		//
		//Use TestCleanup to run code after each test has run
		//[TestCleanup()]
		//public void MyTestCleanup()
		//{
		//}
		//
		#endregion


		/// <summary>
		///A test for AsyncProcess Constructor
		///</summary>
		[TestMethod()]
		public void AsyncProcessConstructorTest()
		{
			AsyncProcess target = new AsyncProcess();
			Assert.Inconclusive("TODO: Implement code to verify target");
		}

		/// <summary>
		///A test for ReadCompleted
		///</summary>
		[TestMethod()]
		[DeploymentItem("Utils.dll")]
		public void ReadCompletedTest()
		{
			AsyncProcess_Accessor target = new AsyncProcess_Accessor(); // TODO: Initialize to an appropriate value
			IAsyncResult asyncResult = null; // TODO: Initialize to an appropriate value
			target.ReadCompleted(asyncResult);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for Start
		///</summary>
		[TestMethod()]
		public void StartTest()
		{
			AsyncProcessStartInfo inAsyncProcessStartInfo = null; // TODO: Initialize to an appropriate value
			AsyncProcess expected = null; // TODO: Initialize to an appropriate value
			AsyncProcess actual;
			actual = AsyncProcess.Start(inAsyncProcessStartInfo);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Start
		///</summary>
		[TestMethod()]
		public void StartTest1()
		{
			AsyncProcess target = new AsyncProcess(); // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = target.Start();
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for StartInfo
		///</summary>
		[TestMethod()]
		public void StartInfoTest()
		{
			AsyncProcess target = new AsyncProcess(); // TODO: Initialize to an appropriate value
			AsyncProcessStartInfo expected = null; // TODO: Initialize to an appropriate value
			AsyncProcessStartInfo actual;
			target.StartInfo = expected;
			actual = target.StartInfo;
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for StdErr
		///</summary>
		[TestMethod()]
		public void StdErrTest()
		{
			AsyncProcess target = new AsyncProcess(); // TODO: Initialize to an appropriate value
			Action<string> expected = null; // TODO: Initialize to an appropriate value
			Action<string> actual;
			target.StdErr = expected;
			actual = target.StdErr;
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for StdIn
		///</summary>
		[TestMethod()]
		public void StdInTest()
		{
			AsyncProcess target = new AsyncProcess(); // TODO: Initialize to an appropriate value
			StreamWriter actual;
			actual = target.StdIn;
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for StdOut
		///</summary>
		[TestMethod()]
		public void StdOutTest()
		{
			AsyncProcess target = new AsyncProcess(); // TODO: Initialize to an appropriate value
			Action<string> expected = null; // TODO: Initialize to an appropriate value
			Action<string> actual;
			target.StdOut = expected;
			actual = target.StdOut;
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}
	}
}
